-- GENERATED SPELL FOR [Wildspawn Satyr] --


function spell0_11451(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_11451', 599, 1)
end

function spell1_11451(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_11451', 661, 1)
end

function spell2_11451(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11451', 10334, 1)
end

function spell3_11451(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11451', 650, 1)
end

function Sorts_11451(pUnit, Event)
local choix_sorts_11451 = math.random(0, 3)
if choix_sorts_11451 == 0 then
pUnit:RegisterEvent('spell0_11451', 1, 1)
end
if choix_sorts_11451 == 1 then
pUnit:RegisterEvent('spell1_11451', 1, 1)
end
if choix_sorts_11451 == 2 then
pUnit:RegisterEvent('spell2_11451', 1, 1)
end
if choix_sorts_11451 == 3 then
pUnit:RegisterEvent('spell3_11451', 1, 1)
end
end

function mob11451_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11451', math.random(1500, 3000), 1)
end

function mob11451_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11451_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11451_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11451, 1, 'mob11451_Action')
RegisterUnitEvent(11451, 2, 'mob11451_Leave')
RegisterUnitEvent(11451, 3, 'mob11451_Kill')
RegisterUnitEvent(11451, 4, 'mob11451_Die')
